package com.atguigu.srb.sms;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

// 必须排除数据源的自动配置类->因为当前服务没有用mybatisplus，所以没有配置数据源
// 但是如果不配置数据源就会报错，因为导入了mybatisplus的场景启动器
//@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) // 添加了查询数据库功能，所以注释掉了
@SpringBootApplication
@ComponentScan("com.atguigu.srb")
@EnableSwagger2
@EnableFeignClients(basePackages = "com.atguigu.srb.sms.feignClient")
public class ServiceSmsApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceSmsApplication.class, args);
    }

}
